import 'package:flutter/material.dart';
import 'package:love_app/common/su.dart';

//用于测试的页面
class BugTest extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("bug测试页面"),
      ),
      body: Center(
        child: RaisedButton(
          onPressed: () {
            Navigator.of(context).push(MaterialPageRoute(builder: (context) {
              return _NextPage();
            }));
          },
          child: Text("next page"),
        ),
      ),
    );
  }
}

class _NextPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("bug测试页面"),
      ),
      body: Center(
        child: Text("next page"),
      ),
    );
  }
}
